---
layout: "default"
title: "Never"
description: "Swift documentation for 'Never': The return type of functions that do not return normally; a type with no."
keywords: "Never,enum,swift,documentation"
root: "/v3.1"
---

<div class="intro-declaration"><code class="language-swift">enum Never</code></div>

<div class="discussion comment">
    <p>The return type of functions that do not return normally; a type with no
values.</p>

<p>Use <code>Never</code> as the return type when declaring a closure, function, or
method that unconditionally throws an error, traps, or otherwise does
not terminate.</p>

<pre><code class="language-swift">func crashAndBurn() -&gt; Never {
    fatalError(&quot;Something very, very bad happened&quot;)
}</code></pre>
</div>

<table class="standard">



<tr>
<th>Import</th>
<td><code class="language-swift">import Swift</code></td>
</tr>

</table>









